package com.springboot.auth.authorization.provider;

import com.springboot.auth.authorization.model.common.ResponseModel;
import com.springboot.auth.authorization.model.vo.Authcode;
import com.springboot.auth.authorization.model.vo.CaptchaVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by ZengJian on 2021/2/3 0003 上午 9:22
 */
@FeignClient(name = "auth-code", fallback = AuthcodeProviderFallback.class)
public interface AuthcodeProvider {

    @PostMapping("/captcha/get")
    ResponseModel get(@RequestBody CaptchaVO captchaVO);

    @PostMapping("/captcha/check")
    ResponseModel check(@RequestBody CaptchaVO captchaVO);

    @PostMapping("/captcha/verify")
    ResponseModel verify(@RequestBody CaptchaVO captchaVO);

    @PostMapping("/captcha/getAuthcode")
    String getAuthcode(@RequestBody Authcode authcode);
}
